package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.BookingRequestConfigRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.BookingRequestConfigReqDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * RPC-装船要求用箱要求订舱要求
 *
 * @author lzp
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC - 服务-装船要求用箱要求订舱要求")
public interface BookingRequestConfigApi {

    String PREFIX = DocApiConstants.PREFIX + "/bookingRequest";

    /**
     * RPC服务查询装船要求用箱要求订舱要求
     *
     * @param bookingRequestConfigReqDto
     * @return
     */
    @Operation(summary = "查询装船要求用箱要求订舱要求")
    @PostMapping(PREFIX + "/query")
    CommonResult<List<BookingRequestConfigRespDto>> queryBookingRequestConfig(@Valid @RequestBody BookingRequestConfigReqDto bookingRequestConfigReqDto);
}
